package org.example;

import OssAliyun.DownloadOSS;
import OssAliyun.UploadOSS;

public class Main {
    public static void main(String[] args) {

        UploadOSS uploadOSS = new UploadOSS();
        DownloadOSS downloadOSS = new DownloadOSS();
        String bucketName = "hang-cs-test-bucket";
        try {
            // demo.createBucket("hang-cs-test-bucket");
            //demo.uploadContent(bucketName);
            //uploadOSS.uploadFile(bucketName, "123/123.png", "C:\\Users\\34572\\Desktop\\Snipaste_2024-05-17_10-07-34.png");
            downloadOSS.downloadFile(bucketName, "123/123.png", "C:\\Users\\34572\\Desktop\\321.png");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}